package com.ys.modules.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

@Data
@TableName("tg_user_referral")
@ApiModel("用户裂变关系")
public class TgUserReferral {
    @ApiModelProperty(value = "id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "被邀请人userId")
    private Long userId;

    @ApiModelProperty(value = "被邀请人miniId")
    private Long invitedMiniId;

    @ApiModelProperty(value = "邀请码")
    private String code;

    @ApiModelProperty(value = "邀请人userId")
    private Long inviterId;

    @ApiModelProperty(value = "邀请来源: 0-正常 1-活动")
    private Integer source;

    @ApiModelProperty(value = "关联来源id")
    private Long refId;

    @ApiModelProperty(value = "记录状态: 0-有效 1-无效")
    private Integer status;

    @ApiModelProperty(value = "创建者")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新者")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除")
    private Integer deleted;
} 